#import "OasisVirtuousCell.h"


@implementation OasisVirtuousCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self echoIntrepidYearnInitUI];
	}
	return self;
}

- (void)setDrift:(OasisVirtuousModel *)drift {
	_drift = drift;

	//: 配置cell的UI







}
- (UIImageView *)marvelHazePioneerImageView {
	if (!_marvelHazePioneerImageView) {
	
        _marvelHazePioneerImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _marvelHazePioneerImageView.contentMode = UIViewContentModeScaleAspectFill;
        _marvelHazePioneerImageView.clipsToBounds = YES;
        _marvelHazePioneerImageView.layer.cornerRadius = 11;
        _marvelHazePioneerImageView.layer.masksToBounds = YES;
        _marvelHazePioneerImageView.frame = CGRectMake(42, 29, 179, 146);
        UIImage *yarnTranquilSuspicion = [UIImage imageNamed:@"images/image_0.png"];
        if (yarnTranquilSuspicion) {
	        _marvelHazePioneerImageView.image = yarnTranquilSuspicion;
        }
	}
	return _marvelHazePioneerImageView;
}

- (UIImageView *)balanceJoyousImageView {
	if (!_balanceJoyousImageView) {
	
        _balanceJoyousImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _balanceJoyousImageView.contentMode = UIViewContentModeScaleAspectFill;
        _balanceJoyousImageView.clipsToBounds = YES;
        _balanceJoyousImageView.layer.cornerRadius = 11;
        _balanceJoyousImageView.layer.masksToBounds = YES;
        _balanceJoyousImageView.frame = CGRectMake(0, 22, 86, 89);
        UIImage *keyholeGlimmerTonic = [UIImage imageNamed:@"images/image_2.png"];
        if (keyholeGlimmerTonic) {
	        _balanceJoyousImageView.image = keyholeGlimmerTonic;
        }
	}
	return _balanceJoyousImageView;
}

//: self.umbraBtn 的点击事件
- (void)action_4 {}

- (UITextView *)hopefulKaleidoscopePathwayTextView {
	if (!_hopefulKaleidoscopePathwayTextView) {
	
        _hopefulKaleidoscopePathwayTextView = [[UITextView alloc] initWithFrame:CGRectZero];
        _hopefulKaleidoscopePathwayTextView.size = CGSizeMake(80, 78);
        _hopefulKaleidoscopePathwayTextView.left = 11;
        _hopefulKaleidoscopePathwayTextView.top = 19;
	}
	return _hopefulKaleidoscopePathwayTextView;
}

- (UITextField *)nirvanaIdealTextField {
	if (!_nirvanaIdealTextField) {
	
        _nirvanaIdealTextField = [[UITextField alloc] initWithFrame:CGRectZero];
        _nirvanaIdealTextField.frame = CGRectMake(19, 17, 182, 176);
	}
	return _nirvanaIdealTextField;
}

- (void)echoIntrepidYearnInitUI {
	//: 描述_0
	[self.contentView addSubview:self.marvelHazePioneerImageView];


    //: 描述_1
    self.idealImageView = [[UIImageView alloc] init];
    self.idealImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.idealImageView.clipsToBounds = YES;
    self.idealImageView.layer.cornerRadius = 10;
    self.idealImageView.layer.masksToBounds = YES;
    UIImage *hologramKeepsake = [UIImage imageNamed:@"images/image_1.png"];
    if (hologramKeepsake) {
	    self.idealImageView.image = hologramKeepsake;
    }
    [self.contentView addSubview:self.idealImageView];
	[self.idealImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(36);
		make.height.mas_equalTo(166);
		make.bottom.equalTo(@(19));
	}];

	//: 描述_2
	[self.contentView addSubview:self.balanceJoyousImageView];


    //: 描述_3
    UITextView *wisp = [UITextView new];
    wisp.size = CGSizeMake(148, 126);
    wisp.left = 4;
    wisp.top = 46;
    self.yonderNightfallCirculateTextView = wisp;
    [self.contentView addSubview:wisp];


    //: 描述_4
    self.umbraBtn = [[UIButton alloc] init];
    UIImage *pulse = [UIImage imageNamed:@"images/icon_4.png"];
    if (pulse) {
	    [self.umbraBtn setImage:pulse forState:UIControlStateNormal];
    }
    [self.umbraBtn setTitle:@"button_4" forState:UIControlStateNormal];
    [self.umbraBtn setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [self.umbraBtn setTitleColor:[UIColor colorWithRed:6/255.0 green:174/255.0 blue:116/255.0 alpha:0.9] forState:UIControlStateNormal];
    [self.umbraBtn setTitleColor:[UIColor colorWithRed:187/255.0 green:72/255.0 blue:74/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.umbraBtn addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.umbraBtn];
	[self.umbraBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(154);
		make.height.mas_equalTo(123);
		make.top.equalTo(@(17));
		make.bottom.equalTo(@(13));
	}];

	//: 描述_5
	[self.contentView addSubview:self.hopefulKaleidoscopePathwayTextView];

	//: 描述_6
	[self.contentView addSubview:self.nirvanaIdealTextField];
}


@end